package cn.doitedu.day05

import java.text.SimpleDateFormat

class DateUtilClass {

  val sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")

  //private val sdf: FastDateFormat = FastDateFormat.getInstance("yyyy-MM-dd HH:mm:ss")

  //加锁不好，效率低
  def parse(dt: String): Long = {
    sdf.parse(dt).getTime
  }


}
